package widgets

import (
	"fyne.io/fyne/v2"
	"fyne.io/fyne/v2/container"
	"fyne.io/fyne/v2/widget"
)
// 根据传入的字符串切片构造表头
func Header(header []string,i int) *fyne.Container {
	lh := len(header)
	grid := container.NewGridWithColumns(lh+i)
	for _, v := range header {
		grid.Add(widget.NewLabel(v))
	}
	return grid
}
